const express = require('express')

const app = express()

// 把路由对象引进来，当作路由中间级来使用
const adminRouter = require('./router/admin')
const frontRouter = require('./router/front')

// 路由中间件
app.use('/admin', adminRouter)
app.use('/front', frontRouter)

app.listen(3000, () => {
  console.log(3000);
});